package com.ld.security.server.admin.modules.ge.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ld.security.common.core.anno.IdKey;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.mybatis.base.entity.SuperEntity;
import com.ld.security.common.mybatis.constant.SqlCondition;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("ge_column")
@ApiModel("列实体")
@Data
public class GeColumnEntity extends SuperEntity
{


    @SqlKey(SqlCondition.eq)
    @ApiModelProperty("表编号")
    private String tableId;



    @ApiModelProperty("表名")
    @SqlKey(SqlCondition.like)
    private String tableName;


    @SqlKey(SqlCondition.like)
    @ApiModelProperty("标题")
    private String label;

    @SqlKey(SqlCondition.like)
    @ApiModelProperty("列名")
    private String columnName;



    @SqlKey(SqlCondition.like)
    @ApiModelProperty("字段类型")
    private String columnType;


    @IdKey({"tableId","columnName"})
    @Override
    public String getId() {
        return super.getId();
    }
}
